<?php
require_once("config_inc.php");

require_once("core/user_api.php");
require_once("core/gui_api.php");

$db = new database();
$db->connect();

session_start();


$gui_api = new gui_api($db);

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<?php require_once("meta_inc.php"); ?>
<script type="text/javascript">

var server_url = '<?=SERVER_URL;?>';

$(document).ready(function() {	
	$('#gallery_container').imagesLoaded(function() {
		$('#gallery_container').masonry({
		   	itemSelector: '.box', columnWidth: 10, cornerStampSelector: '.corner-stamp'
  		});
	});
});
</script>
</head>

<body>

<?php require_once("topbar_inc.php"); ?>

    
<div id="gallery_container" style="margin-top:70px">        
	<?php echo $gui_api->insert_share_list(array("type" => SHARE_TYPE_GLOBAL)); ?>
</div>    


<?php require_once("bottombar_inc.php"); ?>
</body>
</html>
<?php $db->close(); ?>